package com.coollang.smartbra.model;

import com.coollang.smartbra.http.ResponseData;

import java.util.List;

import io.realm.annotations.PrimaryKey;

/**
 * @Auther: Timmy
 * @Data: 2017/7/13
 * @Fuction:
 */

public class DeviceInfoModel  implements ResponseData  {



    /**
     * code : 200
     * message : success
     * data : [{"id":151,"mac":"DB:0B:C9:95:FA:15","nickname":"DB:0B:C9:95:FA:15","create_time":"2017-07-13 15:49:42","username":"17688563232","status":1}]
     */

    private int code;
    private String message;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean  {
        /**
         * id : 151
         * mac : DB:0B:C9:95:FA:15
         * nickname : DB:0B:C9:95:FA:15
         * create_time : 2017-07-13 15:49:42
         * username : 17688563232
         * status : 1
         */

        @PrimaryKey
        public long uid = 0;

        private int id;
        private String mac;
        private String nickname;
        private String create_time;
        private String username;
        private int status;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getMac() {
            return mac;
        }

        public void setMac(String mac) {
            this.mac = mac;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }
}
